package br.com.ged.dominio;

import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;

public class DateUtils {
	public static final String DATE_FORMAT_NOW = "dd/MM/yyyy";
	public static final String DATETIME_FORMAT_NOW = "dd/MM/yyyy HH:mm:ss";
	private static Calendar cal = Calendar.getInstance();

	public static Date dateTimeNow() {
		return cal.getTime();

	}

	public static String dateTimeNowFormated() {
		
		SimpleDateFormat sdf = new SimpleDateFormat(DATE_FORMAT_NOW);
		return sdf.format(cal.getTime());

	}
	
	public static String dateNowFormated() {
		SimpleDateFormat sdf = new SimpleDateFormat(DATE_FORMAT_NOW);
		return sdf.format(cal.getTime());

	}
}
